import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import persistedState from 'vuex-persistedstate'
import routerModule from './routerMudole'
export default new Vuex.Store({
  state: {
    tokenObj:{},
    authName:{}
  },
  getters: {
  },
  mutations: {
    addToken(state,obj){
      state.tokenObj = obj
    },
    addAuthName(state,obj){
      state.authName = obj
    }
  },
  actions: {
  },
  modules: {
    routerModule
  },
  plugins: [persistedState()]
})
